package com.hd.entity.activiti.example;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import com.hd.entity.activiti.BaseVO;
/**
 * 发公文
 * @author hzhh123
 * 2018年10月11日下午2:15:24
 */
@Entity
@Table(name="SEND_DOCUMENT")
public class SendDocument extends BaseVO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6702864913595184491L;
	@Id
	@Column(name="ID")
	private String id;
	@Column(name="PROCESS_INSTANCE_ID")
	private String processInstanceId; // 流程实例Id
	/**
	 * 申请人id
	 */
	@Column(name="USERID")
	private String userid;
	/**
	 * 申请人
	 */
	@Column(name="USER_NAME")
	private String userName;
	/**
	 * 审批状态
	 */
	@Column(name="STATUS")
	private Integer status; // 审核状态 未提交 审核中 审核通过 审核未通过
	
	/**
	 * 标题
	 */
	@Column(name="TITLE")
	private String title;
	/**
	 * 发文主题
	 */
	@Column(name="TOPIC")
	private String topic;
	
	/**
	 * 公文类型
	 */
	@Column(name="DOC_TYPE")
	private String docType;
	@Column(name="DOC_TYPE_NAME")
	private String docTypeName;
	/**
	 * 紧急程度
	 */
	@Column(name="EMERGENCY_LEVEL")
	private String emergencyLevel;
	/**
	 * 密级
	 */
	@Column(name="DENSE_GRADE")
	private String denseGrade;
	/**
	 * 发文时间
	 */
	@Column(name="SEND_DATE")
	@Temporal(TemporalType.DATE)
	private Date sendDate;
	
	@Transient
	private Date sendDateStart;
	@Transient
	private Date sendDateEnd;
	/**
	 * 发文文号
	 */
	@Column(name="DOC_NO")
	private String docNo;
	/**
	 * 主办单位
	 */
	@Column(name="MAIN_BOARD_UNIT")
	private String mainBoardUnit;
	@Column(name="MAIN_BOARD_UNIT_NAME")
	private String mainBoardUnitName;
	/**
	 * 主送单位
	 */
	@Column(name="MAIN_UNIT")
	private String mainUnit;
	/**
	 * 抄送单位
	 */
	@Column(name="CC_UNIT")
	private String ccUnit;
	/**
	 * 正文
	 */
	@Column(name="CONTENT_TEXT")
	private String contentText;
	/**
	 * 附件
	 */
	@Column(name="ATTACH_ID")
	private String attachId;
	/**
	 * 份数
	 */
	@Column(name="NUM")
	private String num;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getProcessInstanceId() {
		return processInstanceId;
	}
	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getTopic() {
		return topic;
	}
	public void setTopic(String topic) {
		this.topic = topic;
	}
	public String getDocType() {
		return docType;
	}
	public void setDocType(String docType) {
		this.docType = docType;
	}
	public String getDocTypeName() {
		return docTypeName;
	}
	public void setDocTypeName(String docTypeName) {
		this.docTypeName = docTypeName;
	}
	public String getEmergencyLevel() {
		return emergencyLevel;
	}
	public void setEmergencyLevel(String emergencyLevel) {
		this.emergencyLevel = emergencyLevel;
	}
	public String getDenseGrade() {
		return denseGrade;
	}
	public void setDenseGrade(String denseGrade) {
		this.denseGrade = denseGrade;
	}
	public Date getSendDate() {
		return sendDate;
	}
	public void setSendDate(Date sendDate) {
		this.sendDate = sendDate;
	}
	public String getDocNo() {
		return docNo;
	}
	public void setDocNo(String docNo) {
		this.docNo = docNo;
	}
	public String getMainBoardUnit() {
		return mainBoardUnit;
	}
	public void setMainBoardUnit(String mainBoardUnit) {
		this.mainBoardUnit = mainBoardUnit;
	}
	public String getMainUnit() {
		return mainUnit;
	}
	public void setMainUnit(String mainUnit) {
		this.mainUnit = mainUnit;
	}
	public String getCcUnit() {
		return ccUnit;
	}
	public void setCcUnit(String ccUnit) {
		this.ccUnit = ccUnit;
	}
	public String getContentText() {
		return contentText;
	}
	public void setContentText(String contentText) {
		this.contentText = contentText;
	}
	public String getAttachId() {
		return attachId;
	}
	public void setAttachId(String attachId) {
		this.attachId = attachId;
	}
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	public Date getSendDateStart() {
		return sendDateStart;
	}
	public void setSendDateStart(Date sendDateStart) {
		this.sendDateStart = sendDateStart;
	}
	public Date getSendDateEnd() {
		return sendDateEnd;
	}
	public void setSendDateEnd(Date sendDateEnd) {
		this.sendDateEnd = sendDateEnd;
	}
	public String getMainBoardUnitName() {
		return mainBoardUnitName;
	}
	public void setMainBoardUnitName(String mainBoardUnitName) {
		this.mainBoardUnitName = mainBoardUnitName;
	}
	
}
